/* 模型相关页面增强样式 - 转炉终点预测系统 */

/* 通用模型页面样式增强 */
.content-wrapper {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 20px;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    background: linear-gradient(to right, rgba(25, 118, 210, 0.05), transparent);
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.card-header {
    background: linear-gradient(to right, rgba(25, 118, 210, 0.02), transparent);
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
}

.card-title {
    font-size: 17px;
    letter-spacing: 0.3px;
}

.card-title i {
    background-color: rgba(25, 118, 210, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

/* 模型详情页样式增强 */
.model-architecture {
    gap: 30px;
}

.model-placeholder {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.model-placeholder:hover {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03) 0%, rgba(25, 118, 210, 0.07) 100%);
}

.model-placeholder i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.model-description {
    line-height: 1.7;
    color: #444;
}

.model-description ul {
    padding-left: 25px;
}

.model-description li {
    margin-bottom: 10px;
    position: relative;
}

.model-description li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.params-table-wrapper {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.params-table-wrapper table {
    margin: 0;
}

.params-table-wrapper th {
    background-color: rgba(25, 118, 210, 0.05);
}

.params-table-wrapper tr:hover {
    background-color: rgba(25, 118, 210, 0.02);
}

.features-importance {
    padding: 10px;
}

.feature-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
    transition: width 1s ease;
}

/* 模型配置页样式增强 */
.config-form {
    gap: 30px;
}

.config-group {
    border: 1px solid rgba(25, 118, 210, 0.1);
    border-radius: var(--radius);
    padding: 25px;
    background: linear-gradient(to bottom, rgba(25, 118, 210, 0.02), transparent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.config-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(25, 118, 210, 0.2);
}

.config-group-title {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(25, 118, 210, 0.1);
    padding-bottom: 10px;
    position: relative;
}

.config-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
}

.config-item {
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.config-item:hover {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 4px;
}

.config-label {
    font-weight: 600;
    color: #444;
}

.config-input {
    position: relative;
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
    outline: none;
}

.config-desc {
    margin-top: 6px;
    font-style: italic;
}

/* 模型性能页样式增强 */
.metrics-container {
    gap: 25px;
}

.metric-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(25, 118, 210, 0.2));
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.15);
}

.metric-value {
    font-size: 28px;
    margin-bottom: 8px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-distribution {
    margin: 20px 0;
}

.error-item {
    padding: 10px 0;
}

.error-range {
    font-weight: 500;
}

.error-bar-container {
    height: 10px;
    border-radius: 5px;
    margin: 0 20px;
}

.error-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
    transition: width 1s ease;
}

.chart-title {
    font-weight: 600;
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
}

.chart-title i {
    margin-right: 8px;
    color: var(--primary);
}

.chart-container {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.chart-placeholder {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 100%);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.performance-table {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

/* 模型更新页样式增强 */
.update-grid {
    gap: 30px;
}

.version-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.version-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(25, 118, 210, 0.2));
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.15);
}

.version-number {
    font-size: 18px;
    color: var(--primary-dark);
}

.version-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.version-features {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.feature-item i {
    color: var(--primary);
    font-size: 14px;
}

.version-metrics {
    background: linear-gradient(to bottom, rgba(25, 118, 210, 0.02), transparent);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.version-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.step-wizard {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.step-wizard::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
}

.step.active .step-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 5px rgba(25, 118, 210, 0.2);
}

.step.completed .step-circle {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-title {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
}

.step.active .step-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.training-log {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
}

.log-entry {
    margin-bottom: 5px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.log-time {
    color: var(--gray);
}

.log-info {
    color: #333;
}

.log-warning {
    color: var(--warning-color);
}

.log-success {
    color: var(--success-color);
}

.log-error {
    color: var(--danger-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .step-wizard {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-wizard::before {
        display: none;
    }
    
    .config-item {
        grid-template-columns: 1fr;
    }
} 